

 function showChina()
        {
                           
                document.getElementById( "picture" ).src = "images/chineseFlag.jpg";
                document.getElementById( "picture" ).alt = " This is a picture of the Chinese flag";
                document.getElementById( "picture" ).title = "This is a picture of the Chinese flag";
               
                document.getElementById( "caption" ).innerHTML = "China is one of the world's oldest civilizations.";
               
               document.getElementById( "picture2" ).src = "images/hongKong.jpg";
               document.getElementById( "picture2" ).alt = " This is a picture of a building in China";
               document.getElementById( "picture2" ).title = "This is a picture of a building in China";
               
               aArray[ 0 ] = aArray[ 0 ] + 1;
        }
       
               
               
                function showNorthKorea()
        {
      
              
                document.getElementById( "picture" ).src = "images/northKoreanFlag.jpg";
                document.getElementById( "picture" ).alt = " This is a picture of the North Korean flag";
                document.getElementById( "picture" ).title = "This is a picture of the North Korean flag";
                document.getElementById( "picture2" ).src = "images/northKoreanHotel.jpg";
                
                document.getElementById( "caption" ).innerHTML = "The capital and largest city in North Korea is Pyongyang."
                
               document.getElementById( "picture2" ).src = "images/northKoreanHotel.jpg";
               document.getElementById( "picture2" ).alt = " This is a picture of a hotel in North Korea";
               document.getElementById( "picture2" ).title = "TThis is a picture of a hotel in North Korea";
               
           	aArray[ 1 ] = aArray[ 1 ] + 1;
        }
               
               
                function showSouthKorea()
        {

              
                document.getElementById( "picture" ).src = "images/southKoreanFlag.jpg";
                document.getElementById( "picture" ).alt = " This is a picture of a South Korean flag";
                document.getElementById( "picture" ).title = "This is a picture of a South Korean flag";
                
                document.getElementById( "caption" ).innerHTML = "The capital of South Korea is Seoul."
                
               document.getElementById( "picture2" ).src = "images/southKoreanMarket.jpg";
               document.getElementById( "picture2" ).alt = " This is a picture of a hotel in North Korea";
               document.getElementById( "picture2" ).title = "TThis is a picture of a hotel in North Korea";
               
               aArray[ 2 ] = aArray[ 2 ] + 1;
        }
               
               
               
                function showJapan()
        {
   
                document.getElementById( "picture" ).src = "images/japaneseFlag.jpg";
                document.getElementById( "picture" ).alt = " This is a picture of a Japanese flag";
                document.getElementById( "picture" ).title = "This is a picture of a Japanese flag";
                
                document.getElementById( "caption" ).innerHTML = "Japan has the world's 10th largest population with 127 million people."
                
                document.getElementById( "picture2" ).src = "images/japaneseTeahouse.jpg";
               document.getElementById( "picture2" ).alt = " This is a picture of a Japanese Teahouse";
               document.getElementById( "picture2" ).title = "This is a picture of a Japanese Teahouse";
               
               aArray[ 3 ] = aArray[ 3 ] + 1;
        }
               
               
                function showMongolia()
        {
 
                               
                document.getElementById( "picture" ).src = "images/mongolianFlag.jpg";
                document.getElementById( "picture" ).alt = " This is a picture of a Mongolian flag";
                document.getElementById( "picture" ).title = "This is a picture of a Mongolian flag";
                
                document.getElementById( "caption" ).innerHTML = "Mongolia shares borderes with Russia and China."
                
               document.getElementById( "picture2" ).src = "images/mongolianLady.jpg";
               document.getElementById( "picture2" ).alt = " This is a picture of a lady from Mongolia";
               document.getElementById( "picture2" ).title = "This is a picture of a lady from Mongolia";
               
               aArray[ 4 ] = aArray[ 4 ] + 1;
               
                      }
       
       
        function showCounter()
        {
               
               
                      
        }
var aArray = new Array( 5 );


for( var i = 0; i < aArray.length; i = i + 1 )
{
	aArray[ i ] = 0;
}

/*
aArray[ 0 ] = 0;	// China
aArray[ 1 ] = 0;	// NorthKorea
aArray[ 2 ] = 0;	// SouthKorea
aArray[ 3 ] = 0;	// Japan
aArray[ 4 ] = 0;	// Mongolia
*/

function showImage( nIndex )
{
	aArray[ nIndex ] = aArray[ nIndex ] + 1;
}









function showCounter()
{
		
	if( aArray[ 0 ] > 0 && aArray[ 1 ] > 0 && aArray[ 2 ] > 0 
			&& aArray[ 3 ] > 0 && aArray[ 4 ] > 0 )
	{
		alert( "CONGRATULATIONS! ");
		window.location = "completionPage.html"	;
	}
	else
	{
		alert( "The course is incomplete. Please visit all countries to complete the course" );
	}
}




